From: Keir Fraser Date: Mon, 22 Aug 2011 15:15:19 +0000 (+0100) Subject: Adjust non-debug ASSERT() definition to avoid unused-variable warnings. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~9947 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1ded71e27c5ca61935734eadcd79e722cdf99732;p=xen.git Adjust non-debug ASSERT() definition to avoid unused-variable warnings. Signed-off-by: Keir Fraser --- diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h index 0102b8ab70..3e3a0caf8b 100644 --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -37,7 +37,7 @@ do { \ #define ASSERT(p) \ do { if ( unlikely(!(p)) ) assert_failed(#p); } while (0) #else -#define ASSERT(p) ((void)0) +#define ASSERT(p) do { if ( 0 && (p) ); } while (0) #endif #define ABS(_x) ({ \